<template>
  <view class="writeoffList">
    <view class="page-section-spacing">
      <!-- <scroll-view scroll-y="true" @scrolltolower="loadMore" :style="styles"> -->
        <view
          v-for="item in data"
          :key="item.id"
          class="scroll-view-item demo-text-1"
        >
          <view style="width: 50%;display: grid;">
            <text class="writeoffList-name">{{ item.business_id.name||item.business_name }}</text>
            <text class="writeoffList-time">{{ time(item.use_dtt) }}</text></view
          >
          <view style="width: 50%; text-align: end; display: grid"
            ><text
              style="
                font-size: 24rpx;
                font-family: PingFangSC;
                font-weight: 500;
                color: #333333;
              "
              >核销码</text
            >
            <text class="writeoffList-code">{{ item.coupon_number }}</text></view
          >
        </view>
      <!-- </scroll-view> -->
    </view>
  </view>
</template>

<script>
// 优惠券卡片
import "./index.scss";
import Taro from "@tarojs/taro";
import couponCard from "../../../../components/couponCard/index";
import formatTime from "../../../../utils/formatTime"

export default {
  components: {},
  props: ["data","styles"],
  data() {
    return {
    
    };
  },

  computed:{

  },
  created() {

  },
  mounted() {


  },
  methods: {

loadMore(){
console.log(23422)
},

    time(time){
      return formatTime(time, "yyyy.mm.dd h.m.s");
    }
  },
};
</script>
